package org.dromara.comm.controller;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.dromara.comm.domain.AsActivity;
import org.dromara.comm.domain.dto.ActivityDto;
import org.dromara.comm.service.AsRegistrationInformationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 我的报名控制层
 *
 * @author: 郭伟明
 * @date: 2024-08-06 15:11
 **/
@RestController
@RequestMapping("/asRegistrationInformation")
@Tag(name = "我的报名控制层")
public class AsRegistrationInformationController {

    @Autowired
    private AsRegistrationInformationService asRegistrationInformationService;


    @Operation(summary = "查询我的活动")
    @GetMapping("/queryActivity")
    public List<Object> queryActivity(AsActivity asActivity) {
      return asRegistrationInformationService.queryActivity(asActivity);
    }

    @Operation(summary = "查询我的活动信息")
    @GetMapping("/selectActivity")
    public List<ActivityDto> selectActivity(AsActivity asActivity) {
        return asRegistrationInformationService.selectActivity(asActivity);
    }
}
